<?php
namespace app\modules\web\controllers;

use yii\web\Controller;
use yii;
use app\models\User;

class UserController extends Controller
{

	public function actionLogin()
	{
		$this->layout = false;
		if( \Yii::$app->request->isGet )
		{
			return $this->render('login');
		}
		
		$name= trim( \yii::$app->request->post("login_name","") );
		$pwd = trim( yii::$app->request->post("login_pwd","") );
		var_dump($name);
 
		//return $this->render('login');
	}

	public function actionSend(){

		echo "stringa";
		$mail = Yii::$app->mailer->compose();
		//$mail->setFrom('976332214@qq.com');
	    $mail->setTo('1191272971@qq.com');
	    $mail->setSubject('邮件的标题');
	    $mail->setHtmlBody('邮件内容');
	    //$mail->send();//发送
	    var_dump($mail->send()); 
	}


}


?>